Release 10.1A: OpenEdge Development:
Progress Dynamics Basic Development


Adding your toolbar to a dynamic window

You can edit your window to add a toolbar.

To add your toolbar to a dynamic window:

  1. In the AppBuilder main window, choose the Open Object button. The Open Object dialog box appears, as shown:
  2. Select your dynamic window from the Open Object browser. This example uses the Customer Maintenance window built as part of OpenEdge Development: Progress Dynamics Getting Started . You can use that folder window or any other window with a toolbar and a viewer for updating a record.
  3. To use OpenEdge Development: Progress Dynamics Getting Started , select custfoldwin by double-clicking on the selection or by choosing the OK button. This brings up the design window, as shown:
  4. Double-click on the design window to display the Container Builder.
  5. Select the toolbar from the browser, then choose the lookup button next to the Object field.
  6. Select the Tutorial Toolbar from the lookup browser window.
  7. Choose Save to register your selection.
  8. Choose Exit to exit the property sheet.
  9. In the AppBuilder, choose Save to save your window.
  10. Enter the name of the window to run. In this example, the Customer Maintenance window cannot be run directly, because it expects to get a Customer key as input. To test it, launch the browse window custbrowsewin from the Dynamic Launcher, as shown:
  11. Select any record in the browser by double-clicking on it, to bring up the Customer Maintenance window, as shown:

The Cut/Copy/Paste buttons on the toolbar are not enabled. The same will be true if you drop down the Edit menu.

The reason for this is that the procedure that runs from these items has not been created. Remember that when you created the Cut, Copy, and Paste items, you specified an Action Type of RUN, and a procedure to run named EditAction. You have to create this procedure and associate it with the toolbar in your window before the actions will work.

The SmartToolbar procedure recognizes that the supporting procedure cannot be found and disables the buttons automatically.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095